__author__ = 'x0r'

#
# Simple logging class
#

import logging

class Logger:
    def __init__(self, filename=''):
        self.__filename = filename
        logger = logging.getLogger("mainlog")
        logging.basicConfig(filename=self.__filename,
                            format='%(asctime)s %(message)s',
                            datefmt='%m/%d/%Y %I:%M:%S %p',
                            level=logging.DEBUG
        )

    def log(self, message=''):
        logging.info(message)

    def getLogger(self):
        return logging.getLogger("mainlog")


